import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      redirect: '/index',
    },
    {
        "path":'/index',
        "name": 'index',
        "component":()=>import('@/views/index-view.vue'),
        children:[
            {
                "path":'heros',
                "name": 'heros',
                "component":()=>import('@/views/content/hero-view.vue'),
            },
            {
                "path":'equipments',
                "name": 'equipments',
                "component":()=>import('@/views/content/equipment-view.vue'),
            },
            {
                "path":'recommend',
                "name": 'recommend',
                "component":()=>import('@/views/content/recommend-view.vue'),
            },
        ]
    }
  ]
})

export default router
